/*
 * @Descripttion: 组件业务名
 * @version:
 * @Author: lhl
 * @Date: 2024-11-16 23:35:41
 * @LastEditors: lhl
 * @LastEditTime: 2024-11-16 23:58:00
 */
import React from "react";
import { Button, Result } from "antd";
import { useNavigate } from "react-router-dom";
const NotForbid: React.FC = () => {
  const navigate = useNavigate();
  const handleBack = () => {
    // window.history.back();
    navigate("/");
  };
  return (
    <Result
      status="403"
      title="403"
      subTitle="抱歉！你没有权限访问该页面，请联系管理员"
      extra={
        <Button type="primary" onClick={handleBack}>
          返回首页
        </Button>
      }
    />
  );
};

export default NotForbid;
